#!/bin/bash
# 构建mo可执行文件

echo "=== 构建 mo (Verilog模块解析器) ==="

# 编译release版本
echo "正在编译 release 版本..."
cargo build --release

if [ $? -eq 0 ]; then
    echo "✓ 编译成功！"
    echo "可执行文件位置: target/release/mo"
    ls -lh target/release/mo
    echo ""
    echo "测试版本信息:"
    ./target/release/mo --version
else
    echo "✗ 编译失败"
    exit 1
fi
